package com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.supplier;

import com.iwhalecloud.bss.kite.common.util.KiteMapUtils;
import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.UserAttrSupplier;
import com.iwhalecloud.bss.kite.cucc.service.custview.userinfo.UserInfoHelper;
import org.springframework.stereotype.Service;

/**
 * @ClassName : FeeCycleEndDateSupplier
 * @Description : 缴费周期截止时间属性提供者
 * @Author : zhengchunlig
 * @Date : 2022/3/3 15:21
 */
@Service
@UserAttrSupplier(attrField = "USR0015")
public class FeeCycleEndDateSupplier extends AbstractUserAttrSupplier{
    @Override
    public String getValue() {
        String feeCycleEndDate = UserInfoHelper
            .getValueFromUserItemInfoMap(userInfoContext.getUserItemInfoMap(), LocalKeyConsts.PAYMENT_CYCLE_END_DATE);
        return feeCycleEndDate;
    }
}
